package com.example.myapplication.databinding.bean.vegetable;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.example.myapplication.BR;

/**
 * Created by xiaolong on 2022/1/2 9:00 下午
 * email：xinxiaolong123@foxmail.com
 */
public class ObservableVegetable extends BaseObservable {

    private String name;
    private double price;
    private String color;

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
        notifyPropertyChanged(BR.price);
    }

    @Bindable
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

}
